<!--<!DOCTYPE html >-->
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>layout Layui</title>
        <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
        <link rel="stylesheet" href="/lay/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
        <style>
            .fa{
              font-size: 20px;
            }
        </style>
    </head>
    <body class="layui-layout-body" style="padding: 10px">

        <div style="height: 500px">
            <table class="layui-hidden" id="treeTable" lay-filter="treeTable"
                   style="overflow-y: auto;padding: 20px"></table>
        </div>
        <script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
        <script src="/js/system/menu/index.js"></script>
        <script src="/js/learn/converterDate.js"></script>
        <script type="text/html" id="switchTpl">
            <input type="checkbox" name="sex" value="{{d.id}}"     lay-skin="switch" lay-text="启动|禁用" lay-filter="menuState"
                   {{ d.enabled== 1 ? 'checked' : '' }}  >
        </script>


        <script type="text/html" id="tool">
            <button class="layui-btn layui-btn-sm"
                    lay-filter="management" id="layuidropdown_{{d.id}}" lay-dropdown="{align:'right', templateMenu: '#table2toolMenu'}">
                <span>管理</span>
                <i class="layui-icon layui-icon-triangle-d"></i>
            </button>
        </script>


        <script id="table2toolMenu" type="text/plain">
[

[{layIcon: 'layui-icon-edit',            txt: '编辑菜单',     event:'edit'}]

  {{# if( d.ismenu< 4) { }}

  [{layIcon: 'layui-icon-add-1',          txt: '添加菜单',     event:'add'}]

  {{# }  }}

  {{# if( d.ismenu< 4) { }}

  [{layIcon: 'layui-icon-add-1',          txt: '添加子菜单',     event:'addChild'}]

  {{# }  }}

  [{layIcon: 'layui-icon-delete',          txt: '干掉他',         event:'del'}]
  [{layIcon: 'layui-icon-list', txt: '详细信息', event:'info'}]
]

        </script>

    </body>
</html>